package com.example.binpacking.controller;

import com.example.binpacking.model.Result;
import com.example.binpacking.model.dto.FunInterviewDto;
import com.example.binpacking.service.FunInterviewService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/pelicanpsyc")
public class FunInterviewController {
    @Autowired
    private FunInterviewService funInterviewService;
    @ApiOperation("根据action进行相应的增删改查操作")
    @PostMapping("/api/interview")
    public Result interview(@RequestBody FunInterviewDto funInterviewDto) {
        return funInterviewService.handleAction(funInterviewDto);
    }
}
